import { http } from '@/utils/request'
import type { ListSystemLogParamsType, SystemLogType } from './model'

/**
 * 获取系统日志列表
 * @param params
 */
export const getSystemLogList = (params: ListSystemLogParamsType) => {
  return http.request<PageResult<SystemLogType>>('get', '/monitor/systemLog', { params })
}

/**
 * 批量删除系统日志
 * @param ids id数组
 */
export const batchDeleteSystemLog = (ids: number[]) => {
  return http.request('delete', `/monitor/systemLog/batchDelete/${ids.join(',')}`)
}
